<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	
	<h:head></h:head>
	<h:body>
		<ui:composition template="/template.xhtml">
			<ui:define name="corpo">
				<h:form>						
					<h:panelGrid columns="2" style="margin:0 auto;">				
						<p:fieldset legend="Assunto">							
							<h:outputText value="#{respostaBean.duvida.titulo}"/>
						</p:fieldset>
						<br /> 
						
						<p:fieldset legend="Descrição">												
							<h:outputText value="#{respostaBean.duvida.descricao}" escape="false"  />
						</p:fieldset>
						<br />
								
						<p:fieldset legend="Resposta">
							<p:editor value="#{respostaBean.resposta.resposta}" id="editor" width="600" height="300"
								controls="bold italic underline font size color bullets numbering alignleft center 
								alignright justify image print "/>
						</p:fieldset>					
						<br />
					
					<p:column>
						<p:commandButton value="Publicar resposta" action="#{respostaBean.responder}" />
						<p:commandButton value="Cancelar" onclick="javascript:window.history.go(-1)"/>
					</p:column>
				
					</h:panelGrid>				
				</h:form>
			</ui:define>
		</ui:composition>
	</h:body>
	
</html>